<html>
<head><meta charset="utf-8"><title>running rust analyzer on a crate manually · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/running.20rust.20analyzer.20on.20a.20crate.20manually.html">running rust analyzer on a crate manually</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="173100633"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/running%20rust%20analyzer%20on%20a%20crate%20manually/near/173100633" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matthiaskrgr <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/running.20rust.20analyzer.20on.20a.20crate.20manually.html#173100633">(Aug 13 2019 at 10:04)</a>:</h4>
<p>Hi, is there a way (cmd) to run rust-analyzer on a crate/workspace manually?  (without having to use vscode/rla plugins etc)</p>



<a name="173100778"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/running%20rust%20analyzer%20on%20a%20crate%20manually/near/173100778" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/running.20rust.20analyzer.20on.20a.20crate.20manually.html#173100778">(Aug 13 2019 at 10:07)</a>:</h4>
<p>What would be the result of such a manual run? There's <code>ra_cli</code> crate inside rust-analyzer which does somethig similar to, for example, type check every expression.  But it exists mainly to debug ra itsefl</p>



<a name="173101169"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/running%20rust%20analyzer%20on%20a%20crate%20manually/near/173101169" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matthiaskrgr <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/running.20rust.20analyzer.20on.20a.20crate.20manually.html#173101169">(Aug 13 2019 at 10:14)</a>:</h4>
<p>was wondering if I could find some crashes by running ra on the ~5000 crates in my cargo cache</p>



<a name="173101229"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/running%20rust%20analyzer%20on%20a%20crate%20manually/near/173101229" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/running.20rust.20analyzer.20on.20a.20crate.20manually.html#173101229">(Aug 13 2019 at 10:15)</a>:</h4>
<p><code>cargo run --package ra_cli -- analysis_stats ../dir</code> should do the trick</p>



<a name="173101774"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/running%20rust%20analyzer%20on%20a%20crate%20manually/near/173101774" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matthiaskrgr <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/running.20rust.20analyzer.20on.20a.20crate.20manually.html#173101774">(Aug 13 2019 at 10:25)</a>:</h4>
<p>cool, thanks!</p>



<a name="173102874"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/running%20rust%20analyzer%20on%20a%20crate%20manually/near/173102874" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Florian Diebold <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/running.20rust.20analyzer.20on.20a.20crate.20manually.html#173102874">(Aug 13 2019 at 10:49)</a>:</h4>
<p>I always test my commits on RA itself, rustc and usually Chalk</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>